package com.zoranjoka.chordis.pages.edit;

import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.zoranjoka.chordis.dao.ArtistDAO;
import com.zoranjoka.chordis.entities.ArtistBean;
import com.zoranjoka.chordis.pages.add.AddAlbum;

public class EditArtist {

	@Inject
	private ArtistDAO dataArtist;
	
	@InjectPage
	private AddAlbum addAlbumPage;

	@Property
	private ArtistBean contextArtist;


	void onActivate(long id) {
		contextArtist = new ArtistBean();
		contextArtist = (ArtistBean) dataArtist.findById(id);
	}
	
//	void onActivate()
//	{
//		contextArtist = new ArtistBean();
//		contextArtist = (ArtistBean) dataArtist.findById(id);
//	}

	
//	public long getId() {
//		return id;
//	}
//
//	public void setId(long id) {
//		this.id = id;
//	}
	
	
	
	

}
